<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 <html xmlns="http://www.w3.org/1999/xhtml">

 <head>
 <title>Linux Commands</title>
 <link rel="stylesheet" type="text/css" href="../css/main.css" />
 </head>

 <body>
 <div id=big-container>
	 <div id=container>
	 	<div id=header>
	 		<div id=top_navigation_bar>
	 			
			</div>	
			<div id=navigation_links>
				<p><a href="index.html">Home</a></p>
				<p><a href="commands.html">Commands</a></p>
				<p>Softwares</p>
				<p>References</p>
			</div>
	 	</div>
	 	
	 	<div id=content>
	 		<div id=left_panel class="middle_commands">
	 		<b>Linux Commands > aptitude</b>
				<h3><b>aptitude</b></h3>
				<p>In addition to its "visual" interface described in the previous section, aptitude can be used to manage packages directly from the command-line in the same way that you would use apt-get.</p>
				<!-- Command description goes here -->
				<p><b>Syntax:</b></p>
				<code>aptitude action [arguments...]</code>

<p>action tells aptitude what action it is to take; the remaining arguments are used in an option-specific fashion. Typically they will consist of package names and command-line switches[4].</p>
<p>The most important actions are:</p>

<h5>aptitude update</h5>

    <p>This command updates the package lists, as if you had entered the visual interface and pressed u.</p> 

<h5>aptitude safe-upgrade</h5>

    <p>This command will upgrade as many packages as it can upgrade without removing existing packages.</p>

    <p>It is sometimes necessary to remove one package in order to upgrade another; this command is not able to upgrade packages in such situations. Use the full-upgrade command to upgrade those packages as well.</p> 

<h5>aptitude full-upgrade</h5>

    <p>Like safe-upgrade, this command will attempt to upgrade packages, but it is more aggressive about solving dependency problems: it will install and remove packages until all dependencies are satisfied. Because of the nature of this command, it is possible that it will do undesirable things, and so you should be careful when using it.</p>
<h5>[Note]	Note</h5>

    <p>For historical reasons, this command was originally named dist-upgrade, and that name is still recognized by aptitude.</p> 

<code>aptitude [ install | remove | purge ] pkg1 [pkg2...]</code>

    <p>These commands install, remove, or purge[5] the specified packages. “Installing” a package which is already installed but can be upgraded will cause it to be upgraded.</p> 

<code>aptitude search pattern1 [pattern2...]</code>

    <p>This command searches for packages whose name contains any of the given patterns, printing the result to the terminal. In addition to just being a string of text, each pattern can be a search pattern as described in the section called "Search Patterns". [6] For instance, "aptitude search gnome kde"s will list all packages whose name contains either "gnome" or "kde"s.</p> 

<code>aptitude show pkg1 [pkg2...]</code>

    <p>Prints information about each pkg to the terminal.</p>
     				
	 		</div>
	 		<div id=right_panel>
				<!-- Command List goes here -->	 			
	 			<h3>Command List</h3>
	 			
				<a href="apt-get.html">apt-get</a>
				<a href="aptitude.html">aptitude</a>
				<a href="cat.html">cat</a>
				<a href="cd.html">cd</a>
				<a href="chmod.html"> chmod </a>
				<a href="chown.html"> chown </a>
				<a href="clear.html"> clear </a>
				<a href="cp.html"> cp </a>
				<a href="df.html"> df </a>
				<a href="find.html"> find </a>
				<a href="gksu.html"> gksu </a>
				<a href="grep.html"> grep </a>
				<a href="halt.html"> halt </a>
				<a href="ifconfig.html"> ifconfig </a>
				<a href="ls.html"> ls </a>
				<a href="man.html"> man </a>
				<a href="mv.html"> mv </a>
				<a href="passwd.html"> passwd </a>
				<a href="shutdown.html"> shutdown </a>
				<a href="sudo.html"> sudo </a>
				<a href="tar.html"> tar </a>
				<a href="touch.html"> touch </a>
				<a href="quota.html"> quota </a>
				<a href="wget.html"> wget </a>
	 		</div>
	 	</div>
	 	<div id=footer>
	 		<p>Copyright &copy; 2011 - Sohan Akolkar - All right included.</p>
	 	</div>
	  </div> 
  </div>
 </body>

 </html>
 
